//完整版
// import Vue from 'vue/dist/vue'

//残缺版（缺少模板渲染器）
import Vue from 'vue'
import App from './App.vue'

import elementUI from "element-ui"
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(elementUI)

import VueRouter from 'vue-router'
import router from '@/router/index'
Vue.use(VueRouter)

import axios from "axios"
Vue.prototype.$axios = axios;

Vue.config.productionTip = false
window.vue = Vue
new Vue({
  render: h => h(App),
  router
  // render(createElement){
  //   return createElement(App);
  // },
  // template:`<App/>`,
  // components:{App}
}).$mount('#app')
//vue = vue核心 + 模板解析器
